package cn.wolfcode.car.service;

import cn.wolfcode.car.domain.Employee;
import cn.wolfcode.car.domain.Permission;
import cn.wolfcode.car.domain.Role;
import cn.wolfcode.car.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IEmployeeService {
    int delete(Long id);

    int save(Employee record);

    Employee get(Long id);

    PageInfo<Employee> list(EmployeeQueryObject qo);


    int update(Employee record);


    Employee getByUserName(String username);

    Workbook exportXls();

    void deleteAll(Long[] ids);

    List<Role> getRolesAndPermission(Long id);

    List<Permission> getPermission(Long id);

    List<Employee> listAll();
}
